• Select the Python tab. Go to and drag Global Variable inside the down_key() event.
  • Change the variable that comes after the keyword global to down_count.
  • From , drag Add Value inside the down_key() event.
  • Change the variable to down_count.

Remember, lines of code that are inside an event have a green block in front of them to show that they are indented.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)